package cn.com.zpark.servlet_response;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @PackageName: cn.com.zpark.servlet_response
 * @ClassName: ResponseDemo01
 * @Description:
 * @author: RZS
 * @date: 2021/11/14  16:50
 */
@WebServlet("/rd1.jsp")
public class ResponseDemo01 extends HttpServlet {
    @Override
    protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        // 设置 HTTP 响应消息的状态码，并生成响应状态行。
        response.setStatus(900);
    }
}
